package day06;

public class 练习 {
    public static void main(String[] args) {
        say();
        sayHi("zhangsan");
        sayHello("lisi",25);
        double a = getNum();
        System.out.println(a);
        int b = plus(4,5);
        System.out.println(b);
        int [] c = testArray();
        System.out.println();
    }

    public static void say(){
        System.out.println("大家好");
    }
    public static void sayHi(String name){
        System.out.println("我叫"+name);
    }
    public static void sayHello(String name, int age){
        System.out.println("我叫"+name+"我今年"+age+"岁了");
    }
    public static double getNum(){
        return 5.22;
    }
    public static int plus(int num1,int num2){
        return num1+num2;
    }
    public static int[] testArray(){
      int[] arr = new int [10];
      for(int i=0;i<arr.length;i++){
          arr[i] =(int)(Math.random()*100);
      }
      return arr;
    }
    public static int[] testArray1(int length,int max){
        int [] arr = new int [length];
        for(int i=0;i<arr.length;i++){
            arr[i] = (int)(Math.random()*100);
        }return arr;
    }









}
